package com.itheima.tlias.controller;

import com.itheima.tlias.pojo.po.SelectLogPageParam;
import com.itheima.tlias.service.LogService;
import com.itheima.tlias.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/page")
    public Result selectLogByPageParam(SelectLogPageParam param) {
        return logService.selectLogByPageParam(param);
    }
}
